from api.base_api import BasePrimeAdminApi

class PrimeAdminLoginApi(BasePrimeAdminApi):
    """
    Admin登录接口
    """
    def __init__(self, username, password):
        super().__init__()  # 继承父类属性
        self.url = f'{self.host}/api/prime/auth/login/'
        self.method = 'post'
        self.json = {
            'userName': username,
            'password': password,
            'authCode': '666666',
        }


if __name__ == '__main__':
    prime_login_api = PrimeAdminLoginApi('jiade.wu@antalpha.com', 'Aa123456_')
    resp = prime_login_api.send()
    print(resp.json())
